package com.erp.service.supplier.impl;

import com.erp.domain.Supplier;

import com.erp.mapper.supplier.SupplierMapper;
import com.erp.service.supplier.SupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.validation.Validator;
import java.util.List;

/**
 * @Author:lxs
 * @CreateTime: 2025-09-02
 * @Description:供应商业务层实现类
 */
@Service
public class SupplierServiceImpl implements SupplierService {
    @Autowired
    private SupplierMapper supplierMapper;
    @Autowired
    protected Validator validator;
    @Override
    public List<Supplier> list(Supplier supplier) {
        return supplierMapper.list(supplier);
    }

    @Override
    public int add(Supplier supplier) {
        return supplierMapper.add(supplier);
    }

    @Override
    public int update(Supplier supplier) {
        return supplierMapper.update(supplier);
    }

    @Override
    public int delete(Long[] supplierIds) {
        return supplierMapper.delete(supplierIds);
    }

}
